#!/usr/bin/make -f

include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/debhelper.mk

JAVA_HOME                  := /usr/lib/jvm/java-gcj
DEB_ANT_BUILD_TARGET       := all
DEB_JARS                   := jl tritonus_share
DEB_INSTALL_CHANGELOGS_ALL := CHANGES.txt

install/libmp3spi-java::
	install -m 644 -D mp3spi*.jar $(DEB_DESTDIR)/usr/share/java/mp3spi-$(DEB_UPSTREAM_VERSION).jar
	dh_link /usr/share/java/mp3spi-$(DEB_UPSTREAM_VERSION).jar \
	  /usr/share/java/mp3spi.jar

get-orig-source:
	-uscan --upstream-version 0 --rename
